//
//  HRDynamicTableViewModel.h
//  Hear
//
//  Created by mac on 2017/3/26.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
@class HRDynamicModel;

@protocol HRDynamicTableViewModelDelegate <NSObject>

- (void)didSelectRowAtIndexPath:(NSIndexPath *)indexPath andDynamicModel:(HRDynamicModel *)dynamicModel;
- (UIView *)tableViewDynamicTableViewModelDelegate:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;

@end

@interface HRDynamicTableViewModel : NSObject <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong)NSMutableArray *contentArr;

@property (nonatomic, strong)id<HRDynamicTableViewModelDelegate> delegate;
@property (nonatomic, strong)UITableView *tableView;

- (void)handleWithTable:(UITableView *)table;
@property (nonatomic, strong)void(^contentOffsetBlock)(CGFloat offsetY);
@property (nonatomic, strong)void(^changeNavigationAlphaBlock)(CGFloat offsetY);
@property (nonatomic, strong)void(^deleteHistoryAnswerBlock)(NSUInteger index);


@end
